Error from `ng serve` after running `ng update @angular/cli @angular/core` and unable to serve Angular project
NickName:ineedtoknow Ask DateTime:2020-01-31T04:46:54

Error from `ng serve` after running `ng update @angular/cli @angular/core` and unable to serve Angular project

In my Angular project, I was having errors while trying to build a docker image. I used ng update @angular/cli @angular/core and was able to resolve that error, and now I'm able to create a docker container of my project that is served. However, now I cannot serve my project with ng serve because I get the following error:

An unhandled exception occurred: compiler.getInfrastructureLogger is not a function

getInfrastructureLogger is NOT a function I created, I'm assuming it's coming from a node mod. I've tried deleting the node_mod folder and install them again with npm install, but I still get the same error. I've tried cleaning my npm cache and I still get the error.

I went back a couple of commits (to before I ran ng update @angular/cli @angular/core) and then I'm able to run ng serve with no errors, but am then unable to create my docker images. I need to be able to use containers, so I have to use ng update @angular/cli @angular/core. But I also want to be able to serve my project as a standalone (plus it better for developing).

Does anyone have any advise on this error? Where it's coming from? Solutions? I would really appreciate it. Thanks for any help you can give.

***To specify, I used ng update @angular/cli @angular/core --force it was the only for me to run that command.

My project is Angular 8, node node version 12.14.

Copyright Notice:Content Author:「ineedtoknow」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/59994254/error-from-ng-serve-after-running-ng-update-angular-cli-angular-core-and-u

More about “Error from `ng serve` after running `ng update @angular/cli @angular/core` and unable to serve Angular project” related questions

Error from `ng serve` after running `ng update @angular/cli @angular/core` and unable to serve Angular project

In my Angular project, I was having errors while trying to build a docker image. I used ng update @angular/cli @angular/core and was able to resolve that error, and now I'm able to create a docker

Show Detail

Try to run (ng serve) but it keeps asking to update @angular/cli but (ng update @angular/cli) doesn't work

I try to run my angular project using ng serve, but this error is showing: The Angular CLI configuration format has been changed, and your existing configuration can be updated automatically by r...

Show Detail

Unable to serve my application with "ng serve" after upgrading angular cli

I had an Angular 2 application working perfectly, but after upgrading angular cli, I am unable to serve my application with ng serve. I have the following error: ng serve ...

Show Detail

Angular CLI freezes computer occasionaly on ng serve

I am having a problem with ng serve. When I run it on my angular project, about 10% of time, it will freeze during the process and also whole computer freezes. Sometimes it unfreeze after some time...

Show Detail

Error while running ng serve command in Angular 2 project

I have recently created a project using angular-cli and am unable to run it using ng serve while running ng serve command it throws this error Cannot read property 'AssetUrl' of undefined

Show Detail

Angular CLI "ng serve" fails after upgrade to 7.3.8

I am new to Angular CLI. My background is in C# ASP.NET. I recently spun up a ASP.NET Core app with Angular CLI through the project wizard of Visual Studio. All that I needed to do to get things

Show Detail

ng serve is not working after Angular 8 update

Error Could not find the implementation for builder @angular-devkit/build-angular:dev-server ng serve Could not find the implementation for builder @angular-devkit/build-angula...

Show Detail

Angular ng serve command

I just make a migration from angular 5 to angular 7. After that i can't run the project. When I type ng serve I get this error: The serve command requires to be run in an Angular project, but a

Show Detail

How to ng serve an older Angular project?

I'm trying to ng serve a sample Angular project included in a third party framework. The sample project is wanting Angular v~4 judging from its package.json file. My global CLI version is 6.0.8. The

Show Detail

ng serve command prompting error 549 in Angular 2 project

I have tried with all given solutions like updating angular/cli and even uninstalling and reinstalling node/npm. I can create new project and it works as expected but when I am trying run ng serve

Show Detail